﻿using System;
using System.Collections.Generic;
using System.Linq;
using EnvDTE;

namespace VSIXUtilities.DataObjects
{
    public class Position
    {
        public Position(int Line, int LineCharOffset)
        {
            this.Line = Line;
            this.LineCharOffset = LineCharOffset;
        }

        public static Position FromVirtualPoint(VirtualPoint VirtualPointInstance)
        {
            return new Position(VirtualPointInstance.Line, VirtualPointInstance.LineCharOffset);
        }

        public int Line
        {
            get;
            private set;
        }
        public int LineCharOffset
        {
            get;
            private set;
        }
    }
}
